package org.example.project

import kotlinx.coroutines.test.runTest
import org.koin.core.context.startKoin
import org.koin.core.context.stopKoin
import kotlin.test.AfterTest
import kotlin.test.BeforeTest
import kotlin.test.Test


class ComposeAppCommonTest {

    @BeforeTest
    fun setup() {
        startKoin {
            modules(appModule)
        }
//        initKoin()
    }

    @AfterTest
    fun cleanup() {
        stopKoin()
    }

    @Test
    fun testApi() = runTest {
        KoinHelper().api.getAllLaunches().forEach { it ->
            print(it)
        }
    }

    @Test
    fun testHello() {
        println("Hello")
    }

}

